/**
 * 新订单中心相关的请求
 */
import Urls from '../ApiUrls';
import ApiBase from './ApiBase';
class ApiNewOrder {
  orderList(params) {
    return ApiBase.send(Urls.URL_NEW_ORDER_LIST,params);
  }
  getOrderItemList(params) {
    return ApiBase.send(Urls.URL_NEW_ORDER_ITEM_LIST,params);
  }
  addOrderPurchase(params) {
    return ApiBase.send(Urls.URL_ORDER_PURCHASE_ADD,params);
  }
  addOrderPurchaseProduct(params) {
    return ApiBase.send(Urls.URL_ORDER_PURCHASE_PRODUCT_ADD,params);
  }
  getCheckDataList(params) {
    return ApiBase.send(Urls.URL_NEW_ORDER_CHECK_LIST,params);
  }
  updateOrderShowRecord(params) {
    return ApiBase.send(Urls.URL_ORDER_SHOW_RECORD_UPDATE,params);
  }
  deleteOrderShowRecord(params) {
    return ApiBase.send(Urls.URL_ORDER_SHOW_RECORD_DELETE,params);
  }
  orderDetail(params) {
    return ApiBase.send(Urls.URL_NEW_ORDER_DETAIL,params);
  }
  confirmOrders(params){
    return ApiBase.send(Urls.URL_NEW_ORDER_CONFIRM, params);
  }
  stockOutOrders(params){
    return ApiBase.send(Urls.URL_NEW_ORDER_STOCK_OUT, params);
  }
  prepareOrders(params){
    return ApiBase.send(Urls.URL_NEW_PREPARE_ORDER, params);
  }
  confirmOffline(params) {
    return ApiBase.send(Urls.URL_NEW_ORDER_CONFIRM_OFFLINE, params);
  }



  addPackage(params){
    return ApiBase.send(Urls.URL_PACKAGE_ADD, params);
  }
  addPackageBox(params){
    return ApiBase.send(Urls.URL_PACKAGE_BOX_ADD, params);
  }
  getPackageInfo(params){
    return ApiBase.send(Urls.URL_PACKAGE_INFO, params);
  }
  packageBoxAddProduct(params){
    return ApiBase.send(Urls.URL_PACKAGE_BOX_ADD_PRODUCT, params);
  }
  deletePackageBox(params){
    return ApiBase.send(Urls.URL_PACKAGE_BOX_DELETE, params);
  }
  queryNotQualityProducts(params){
    return ApiBase.send(Urls.URL_PACKAGE_NOT_QUALITY, params);
  }
  updatePackageBoxProduct(params){
    return ApiBase.send(Urls.URL_PACKAGE_BOX_PRODUCT_MODIFY, params);
  }
}
export  default  ApiNewOrder
